<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
table, th, td { border-width: 1px; border-color: #000000; border-style: solid; }
table { border-collapse: collapse; border-spacing: 0; }
th, td { padding: 0.2em; }
th { font-weight: bold; background-color: #e5e5e5; }
</style>
</head>

<body>
<h1>User Level Capability Table</h1>
<hr />
<table border="1" align="center" width="75%">
	<tr>
		<th colspan="12" align="center">User Level Capabilites in WordPress 1.5 and higher</th>
	</tr>
	<tr>
		<td colspan="12"><ul>
				<li>A blank cell means the capabilitiy is not even available to a particular User Level.
				<li>A "-" means the User Level has the capability, but only part of the functionality.
				<li>A "+" means the User Level has the capability, but can only affect their own objects (such as Posts) or objects of lower User Levels.
				<li>A "x" means that the user has full functionality available for that menu item.
			</ul>
	</tr>
	<tr>
		<th></th>
		<th colspan="11">User Level:</th>
	</tr>
	<tr>
		<th></th>
		<th>0</th>
		<th>1</th>
		<th>2</th>
		<th>3</th>
		<th>4</th>
		<th>5</th>
		<th>6</th>
		<th>7</th>
		<th>8</th>
		<th>9</th>
		<th>10</th>
	</tr>
	<tr>
		<th colspan="12" align="left">Dashboard</th>
	</tr>
	<tr>
		<td>-----</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<th colspan="12" align="left">Write</th>
	</tr>
	<tr>
		<td><span>-----Write Post</td>
		<td align="center">&nbsp;</td>
		<td align="center">-</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	<tr>
		<td><span>-----Write Page</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<th colspan="12" align="left">Manage</th>
	</tr>
	<tr>
		<td><span>-----Posts</td>
		<td align="center">&nbsp;</td>
		<td align="center">-</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Pages</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Categories</td>
		<td align="center">&nbsp;</td>
		<td align="center">-</td>
		<td align="center">-</td>
		<td align="center">-</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Comments</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Awaiting Moderation</td>
		<td align="center">&nbsp;</td>
		<td align="center">-</td>
		<td align="center">-</td>
		<td align="center">-</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<th colspan="12" align="left">Links</th>
	</tr>
	<tr>
		<td><span>-----Manage Links</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Add Links</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Link Categories</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Import Links</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<th colspan="12" align="left">Presentation</th>
	</tr>
	<tr>
		<td><span>-----Themes</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Theme Editor</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<th colspan="12" align="left">Plugins</th>
	</tr>
	<tr>
		<td><span>-----Plugins</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Plugin Editor</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<th colspan="12" align="left">Users</th>
	</tr>
	<tr>
		<td><span>-----Your Profile</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Authors and Users</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">-</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">+</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<th colspan="12" align="left">Options</th>
	</tr>
	<tr>
		<td><span>-----General</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Writing</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Reading</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Discussion</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Permalinks</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<td><span>-----Miscellaneous</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<th colspan="12" align="left">Upload</th>
	</tr>
	<tr>
		<td><span>-----(only if enabled)</td>
		<td align="center">&nbsp;</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
		<td align="center">x</td>
	</tr>
	
	<tr>
		<th></th>
		<th>0</th>
		<th>1</th>
		<th>2</th>
		<th>3</th>
		<th>4</th>
		<th>5</th>
		<th>6</th>
		<th>7</th>
		<th>8</th>
		<th>9</th>
		<th>10</th>
	</tr>
</table>
<h1><a name="权限控制" id="权限控制">权限控制</a></h1>
<div class="level1">
	<p> 在Typecho中分别设置了5个等级的权限供多个用户共用一个博客。他们的权限从高到低分别是:管理员(administrator), 编辑(editor), 贡献者(contributor), 关注者(subscriber), 访问者(visitor).其权限设置与wordpress有一些相同之处，但是扩展方法不尽相同。 </p>
</div>
<h2><a name="权限列表" id="权限列表">权限列表</a></h2>
<div class="level2">
	<table class="inline">
		<tr class="row0">
			<th class="col0"> 权限名称 </th>
			<th class="col1"> 管理员 </th>
			<th class="col2"> 编辑 </th>
			<th class="col3"> 贡献者 </th>
			<th class="col4"> 关注者 </th>
			<th class="col5"> 访问者 </th>
		</tr>
		<tr class="row1">
			<th class="col0"> 代号 </th>
			<td class="col1"> administrator </td>
			<td class="col2"> editor </td>
			<td class="col3"> contributor </td>
			<td class="col4"> subscriber </td>
			<td class="col5"> visitor </td>
		</tr>
		<tr class="row2">
			<th class="col0"> 等级<sup><a href="#fn__1" name="fnt__1" id="fnt__1" class="fn_top">1)</a></sup> </th>
			<td class="col1"> 0 </td>
			<td class="col2"> 1 </td>
			<td class="col3"> 2 </td>
			<td class="col4"> 3 </td>
			<td class="col5"> 4 </td>
		</tr>
		<tr class="row3">
			<th class="col0"> 阅读 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> √ </td>
			<td class="col4"> √ </td>
			<td class="col5"> √ </td>
		</tr>
		<tr class="row4">
			<th class="col0"> 进入控制台 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> √ </td>
			<td class="col4"> √ </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row5">
			<th class="col0"> 修改自己的档案信息 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> √ </td>
			<td class="col4"> √ </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row6">
			<th class="col0"> 撰写文章 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> √<sup><a href="#fn__2" name="fnt__2" id="fnt__2" class="fn_top">2)</a></sup></td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row7">
			<th class="col0"> 管理文章 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> √<sup><a href="#fn__3" name="fnt__3" id="fnt__3" class="fn_top">3)</a></sup></td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row8">
			<th class="col0"> 撰写页面 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row9">
			<th class="col0"> 管理页面 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row10">
			<th class="col0"> 上传文件 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> √<sup><a href="#fn__4" name="fnt__4" id="fnt__4" class="fn_top">4)</a></sup></td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row11">
			<th class="col0"> 管理文件 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> √<sup><a href="#fn__5" name="fnt__5" id="fnt__5" class="fn_top">5)</a></sup></td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row12">
			<th class="col0"> 管理评论 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row13">
			<th class="col0"> 管理分类和标签 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row14">
			<th class="col0"> 管理链接 </th>
			<td class="col1"> √ </td>
			<td class="col2"> × </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row15">
			<th class="col0"> 管理用户 </th>
			<td class="col1"> √ </td>
			<td class="col2"> × </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row16">
			<th class="col0"> 管理插件 </th>
			<td class="col1"> √ </td>
			<td class="col2"> × </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row17">
			<th class="col0"> 调整外观 </th>
			<td class="col1"> √ </td>
			<td class="col2"> × </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row18">
			<th class="col0"> 基本设置 </th>
			<td class="col1"> √ </td>
			<td class="col2"> × </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row19">
			<th class="col0"> 评论设置 </th>
			<td class="col1"> √ </td>
			<td class="col2"> × </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row20">
			<th class="col0"> 阅读设置 </th>
			<td class="col1"> √ </td>
			<td class="col2"> × </td>
			<td class="col3"> × </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
		<tr class="row21">
			<th class="col0"> 撰写习惯设置 </th>
			<td class="col1"> √ </td>
			<td class="col2"> √ </td>
			<td class="col3"> √ </td>
			<td class="col4"> × </td>
			<td class="col5"> × </td>
		</tr>
	</table>
</div>
<h2><a name="开发人员接口" id="开发人员接口">开发人员接口</a></h2>
<div class="level2">
	<p> 对用户的权限操作以及用户信息获取，我们都封装在了Widget_User组件中。开发人员可以通过调用此组件获取相关信息。 </p>
	<table class="inline">
		<tr class="row0">
			<th class="col0"> 方法名称 </th>
			<th class="col1"> 描述 </th>
			<th class="col2"> 参数 </th>
		</tr>
		<tr class="row1">
			<td class="col0"> login </td>
			<td class="col1"> 登录用户 </td>
			<td class="col2"> * $uid(int) - 用户ID </td>
		</tr>
	</table>
	<p> ~~DISCUSSION~~ </p>
</div>
<div class="footnotes">
	<div class="fn"><sup><a href="#fnt__1" id="fn__1" name="fn__1" class="fn_bot">1)</a></sup> 数字越小权限越高</div>
	<div class="fn"><sup><a href="#fnt__2" id="fn__2" name="fn__2" class="fn_bot">2)</a></sup> 审核后发布</div>
	<div class="fn"><sup><a href="#fnt__3" id="fn__3" name="fn__3" class="fn_bot">3)</a></sup> , <sup><a href="#fnt__5" id="fn__5" name="fn__5" class="fn_bot">5)</a></sup> 仅限于自己</div>
	<div class="fn"><sup><a href="#fnt__4" id="fn__4" name="fn__4" class="fn_bot">4)</a></sup> 受限</div>
</div>
</body>
</html>
